import {VMAX_API} from '../../api/url';
import http from '../../api/http';

export default{
    namespaced:true,
    state:{
        vmax:[]
    },
    mutations:{
        setvmax(state,payload){
            state.vmax=payload
        }
    },
    actions:{
        async requestViduesMax(context){
            const {data:{data:{feeds}}} = await http.get(VMAX_API);
            // console.log(feeds);
            context.commit('setvmax',feeds)
        }
    }
}